adc_disk_space

Configuration for Disk space for NetScaler resource.

Read/write properties

space_details<adc_disk_space_details[]>

List of NetScaler disk space details for folder space check and disk clean up.

id<String>

Id is Activity Id.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

get (all)check_disk_spaceclean_disk_space

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/adc_disk_space

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/adc_disk_space?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of adc_disk_space resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/adc_disk_space?pagesize=#no&pageno=#no

Use this query-parameter to get the adc_disk_space resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/adc_disk_space?count=yes

Use this query-parameter to get the count of adc_disk_space resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "adc_disk_space":[{
      "space_details":[{
      "disk1_perusage":<Integer_value>,
      "disk1_free":<Double_value>,
      "disk0_free":<Double_value>,
      "id":<String_value>,
      "disk0_perusage":<Integer_value>,
      "disk1_used":<Double_value>,
      "disk0_total":<Double_value>,
      "disk0_used":<Double_value>,
      "disk1_total":<Double_value>,
      "device":<String_value>
      "folders":<String_value>
      "files":<String_value>}],
      "id":<String_value>}]}

check_disk_space

URL:https://<MGMT-IP>/nitro/v2/config/adc_disk_space?action=check_disk_space&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"adc_disk_space": {
      "space_details":[{
      "folders":<String_value[]>,
      "files":<String_value[]>,
      "device":<String_value>}]
,
      "id":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "adc_disk_space":[{
      "space_details":[{
      "disk1_perusage":<Integer_value>,
      "disk1_free":<Double_value>,
      "disk0_free":<Double_value>,
      "id":<String_value>,
      "disk0_perusage":<Integer_value>,
      "disk1_used":<Double_value>,
      "disk0_total":<Double_value>,
      "disk0_used":<Double_value>,
      "disk1_total":<Double_value>,
      "device":<String_value>
      "folders":<String_value>
      "files":<String_value>}],
      "id":<String_value>}]}

clean_disk_space

URL:https://<MGMT-IP>/nitro/v2/config/adc_disk_space?action=clean_disk_space&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"adc_disk_space": {
      "space_details":[{
      "folders":<String_value[]>,
      "files":<String_value[]>,
      "device":<String_value>}]
,
      "id":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "adc_disk_space":[{
      "space_details":[{
      "disk1_perusage":<Integer_value>,
      "disk1_free":<Double_value>,
      "disk0_free":<Double_value>,
      "id":<String_value>,
      "disk0_perusage":<Integer_value>,
      "disk1_used":<Double_value>,
      "disk0_total":<Double_value>,
      "disk0_used":<Double_value>,
      "disk1_total":<Double_value>,
      "device":<String_value>
      "folders":<String_value>
      "files":<String_value>}],
      "id":<String_value>}]}